package org.jeecg.modules.demo.hd.service;

import org.jeecg.modules.demo.hd.entity.AppUserShareMain;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @Description: app_user_share_main
 * @Author: jeecg-boot
 * @Date: 2025-04-30
 * @Version: V1.0
 */
public interface IAppUserShareMainService extends IService<AppUserShareMain> {


    /**
     * 更新用户的工币数据
     *
     * @param userId   用户ID
     * @param shareNum 增加或减少的工币数量
     * @return
     */
    boolean updateShareMain(String userId, Integer shareNum);


    Double queryCurrentShare(String userId);

}
